package fr.inserm.umr915.vcfserver.bio.berkeley;

import java.util.Comparator;

import com.sleepycat.bind.tuple.StringBinding;
import com.sleepycat.je.DatabaseEntry;

public class IStringSorter
	implements Comparator<byte[]>
	{
	public IStringSorter()
		{
		}
	
	@Override
	public int compare(byte[] o1, byte[] o2)
		{
		String s1= StringBinding.entryToString(new DatabaseEntry(o1));
		String s2= StringBinding.entryToString(new DatabaseEntry(o2));
		return s1.compareToIgnoreCase(s2);
		}
	}
